From: Tim Starling Date: Sun, 30 May 2004 08:18:40 +0000 (+0000) Subject: Extra debugging info and a typo fix X-Git-Tag: 1.5.0alpha1~3138 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=54bc266fe0f2fcf478c53bc13c0fe4850b708628;p=lhc%2Fweb%2Fwiklou.git Extra debugging info and a typo fix --- diff --git a/includes/ParserCache.php b/includes/ParserCache.php index 8066e4f57e..b96bff1121 100644 --- a/includes/ParserCache.php +++ b/includes/ParserCache.php @@ -18,11 +18,15 @@ class ParserCache $hash = $user->getPageRenderingHash(); $pageid = intval( $article->getID() ); $key = $this->getKey( $article, $user ); + wfDebug( "Trying parser cache $key\n" ); $value = $wgMemc->get( $key ); if ( $value ) { + wfDebug( "Found.\n" ); # Delete if article has changed since the cache was made $touched = $article->getTouched(); - if ( $value->getCacheTime() <= $touched || $value->getCacheTime < $wgCacheEpoch ) { + $cacheTime = $value->getCacheTime(); + if ( $value->getCacheTime() <= $touched || $cacheTime < $wgCacheEpoch ) { + wfDebug( "Key expired, touched $touched, epoch $wgCacheEpoch, cached $cacheTime\n" ); $wgMemc->delete( $key ); $value = false; }